package com.ruoyi.biz.service.impl;

import com.ruoyi.biz.domain.IhCertification;
import com.ruoyi.biz.mapper.IhCertificationMapper;
import com.ruoyi.biz.service.IIhCertificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 * 实名认证Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-13
 */
@Service
public class IhCertificationServiceImpl implements IIhCertificationService 
{
    @Autowired
    private IhCertificationMapper ihCertificationMapper;

    /**
     * 查询实名认证
     * 
     * @param id 实名认证主键
     * @return 实名认证
     */
    @Override
    public IhCertification selectIhCertificationById(Long id)
    {
        return ihCertificationMapper.selectIhCertificationById(id);
    }

    /**
     * 查询实名认证列表
     * 
     * @param ihCertification 实名认证
     * @return 实名认证
     */
    @Override
    public List<IhCertification> selectIhCertificationList(IhCertification ihCertification)
    {
        return ihCertificationMapper.selectIhCertificationList(ihCertification);
    }

    /**
     * 新增实名认证
     * 
     * @param ihCertification 实名认证
     * @return 结果
     */
    @Override
    public int insertIhCertification(IhCertification ihCertification)
    {
        return ihCertificationMapper.insertIhCertification(ihCertification);
    }

    /**
     * 修改实名认证
     * 
     * @param ihCertification 实名认证
     * @return 结果
     */
    @Override
    public int updateIhCertification(IhCertification ihCertification)
    {
        return ihCertificationMapper.updateIhCertification(ihCertification);
    }

    /**
     * 批量删除实名认证
     * 
     * @param ids 需要删除的实名认证主键
     * @return 结果
     */
    @Override
    public int deleteIhCertificationByIds(Long[] ids)
    {
        return ihCertificationMapper.deleteIhCertificationByIds(ids);
    }

    /**
     * 删除实名认证信息
     * 
     * @param id 实名认证主键
     * @return 结果
     */
    @Override
    public int deleteIhCertificationById(Long id)
    {
        return ihCertificationMapper.deleteIhCertificationById(id);
    }
}
